package com.ws.wuse.ui.main;

import android.graphics.Color;
import android.view.View;
import android.widget.ImageView;

import com.ws.base.BaseFrameAvtivity;
import com.ws.wuse.R;

/**
 * User: zhanghang
 * Date: 2016-04-22
 * Time: 14:47
 * FIXME 入口页面
 */
public class MainActivity extends BaseFrameAvtivity<com.ws.wuse.ui.main.MainDelegate> implements View.OnClickListener {

    private ImageView image;

    @Override
    protected Class<MainDelegate> getDelegateClass() {
        return MainDelegate.class;
    }

    @Override
    protected void initViews() {

    }

    @Override
    protected void initEvents() {

        viewDelegate.setOnClickListener(this, R.id.image);
    }

    @Override
    public void onClick(View v) {
        image.setBackgroundColor(Color.parseColor("#00000000"));
        viewDelegate.showMsg();
    }
}